﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SIGERP_Presentacion
{
    public partial class frmPaisAgregar : Form
    {
        public frmPaisAgregar()
        {
            InitializeComponent();
        }

        private void frmPaisAgregar_Load(object sender, EventArgs e)
        {

        }

        private void picTitulo_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {

        }

        private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void toolStripStatusLabel1_Click(object sender, EventArgs e)
        {

        }



        private void label1_Click_1(object sender, EventArgs e)
        {

        }

        private void btnGuardar_Click(object sender, EventArgs e)
        {
            SIGERP_Negocio.Paises paises = new SIGERP_Negocio.Paises();
            SIGERP_Entidades.Pais pais = new SIGERP_Entidades.Pais();
            // El id se lo asigna el db
            //pais.ID = Convert.ToInt32(99); 
            pais.Nombre = txtNombre.Text;
            paises.Agregar(pais);
            Close();
        }

        private void btnCancelar_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
